//
//  BJShiZhengYaoWenTableViewCell.m
//  DangXiao
//
//  Created by APPLE on 16/12/6.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJShiZhengYaoWenTableViewCell.h"

@implementation BJShiZhengYaoWenTableViewCell

-(void)initUI{
    
    _imgeViews = [[UIImageView alloc]init];
    _imgeViews.backgroundColor = [UIColor greenColor];
    [self addSubview:_imgeViews];
    [_imgeViews mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(BILIWIDTH(10));
        make.centerY.mas_equalTo(self.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(BILIWIDTH(95), BILIHEIGHT(68)));
    }];
    
    _nameLabel = [Utils labelWithTitle:@"时政要闻" titleFontSize:16 textColor:BlackTextColor backgroundColor:ClearColor alignment:1];
    _nameLabel.numberOfLines = 0;
    [self addSubview:_nameLabel];
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_imgeViews.mas_right).offset(BILIWIDTH(10));
        make.top.mas_equalTo(BILIHEIGHT(10));
    }];
    
    _timeLabel = [Utils labelWithTitle:@"10-17" titleFontSize:14 textColor:GrayTextColor backgroundColor:ClearColor alignment:1];
    [self addSubview:_timeLabel];
    [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_nameLabel);
        make.bottom.mas_equalTo(-BILIHEIGHT(10));
    }];
    
    _amountLabel = [Utils labelWithTitle:@"102902评" titleFontSize:12 textColor:GrayTextColor backgroundColor:ClearColor alignment:1];
    [self addSubview:_amountLabel];
    [_amountLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(BILIWIDTH(-10));
        make.bottom.mas_equalTo(_timeLabel);
    }];
    
    _signLabel = [Utils labelWithTitle:@"专题" titleFontSize:12 textColor:[UIColor whiteColor] backgroundColor:BaseColor alignment:1];
    [self addSubview:_signLabel];
    [_signLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(_amountLabel.mas_left).offset(-BILIWIDTH(10));
        make.bottom.mas_equalTo(_timeLabel);
    }];
    

}
@end
